import type { App } from "vue";
/**
 * 全局注册自定义组件
 * @param app
 */
export function setupDirectives(app: App) {
  // 自定义权限指令
  app.directive("permiss", {
    mounted(el: HTMLElement, binding: any) {
      if (!binding.value) {
        el.style.display = "none";
      }
    }
  });
}
